const express = require("express");

const app = express();

// http://127.0.0.1:3000/a.html
app.use(
  (req, res, next) => {
    res.status(200);
    next();
  },
  (req, res, next) => {
    res.header("token", "123123");
    next();
  },
  (req, res) => {
    res.send({ a: 1, b: 2 });
  }
);

// http://127.0.0.1:3000
app.listen(3000, () => {
  console.log("success", "http://127.0.0.1:3000");
});
